<%-- 
    Document   : header
    Created on : Dec 13, 2013, 10:03:02 AM
    Author     : tritruong
--%>

<%@tag description="put the tag description here" pageEncoding="UTF-8"%>
<%@tag import="org.hibernate.Session"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%-- The list of normal or fragment attributes can be specified here: --%>
<%@attribute name="message"%>

<%-- any content can be specified here e.g.: --%>
<%
	boolean daDangNhap = false;
	if (session.getAttribute("maSinhVien") != null) {
		daDangNhap = true;
	}
%>

<header id="masthead" class="site-header" role="banner" >
				<a href="#" id="logo"></a>
	<nav id="site-navigation" class="themonic-nav" role="navigation">
		<a class="assistive-text" href="#content" title="Skip to content">Skip to content</a>
		<div class="nav-menu">
			<ul>
				<li class="current_page_item"><a href="/ThongTinSinhVien/" title="Home">Trang chủ</a></li>
				<% if (daDangNhap) { %>
					<li class="page_item page-item-2"><a href="/ThongTinSinhVien/sinhvien/thongtin.htm">Thông tin cá nhân</a></li>
				<% } %>
			</ul>
		</div>
		<div class="widget widget_search" >
			<form role="search" method="get"  class="child" action="/ThongTinSinhVien/sinhvien/timkiem.htm">
					<input type="text" value="" name="giaTri" id="idsearch" />
					<input type="submit" id="searchsubmit" value="Tìm" />	
			</form>
			<% 
				if (daDangNhap) { 
			%>
					<a href="/ThongTinSinhVien/sinhvien/dangxuat.htm" >Đăng xuất</a>
			<%
				}
				else {
			%>
				<form method="get"  class="child" action="/ThongTinSinhVien/sinhvien/dangnhap.htm">
					<input type="text" value="" name="maSinhVien" />
					<input type="text" value="" name="matKhau"/>
					<input type="submit" id="searchsubmit" value="Đăng nhập" />				
				</form>
			<% } %>
		</div>



	</nav><!-- #site-navigation -->

	<div class="clear"></div>
</header><!-- #masthead -->